﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace EntityModel
{
    /// <summary>
    /// 走访记录表
    /// </summary>
    public class Interview
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid Id { get; set; }

        /// <summary>
        /// 被走访人员姓名
        /// </summary>
        [Required]
        [StringLength(30)]
        public string? People_Name { get; set; }

        /// <summary>
        /// 职员姓名
        /// </summary>
        [Required]
        [StringLength(30)]
        public string? Employee_Name { get; set; }

        /// <summary>
        /// 访谈时长
        /// </summary>
        [Required]
        public DateTime How_long { get; set; }

        /// <summary>
        /// 访谈效果
        /// </summary>
        public Effects Effect { get; set; }
        public enum Effects
        {
            优秀=1,
            良好=2,
        }

        /// <summary>
        /// 是否被接受访谈
        /// </summary>
        [Required]
        public bool IsInterview { get; set; }

        /// <summary>
        /// 处理解决方案
        /// </summary>
        public string? Solution { get; set; }

        /// <summary>
        /// 访谈内容
        /// </summary>
        public string? Content { get; set; }
    }
}
